package me.khrystal;

import android.app.Application;

import com.alipay.euler.andfix.patch.PatchManager;

import me.khrystal.util.Settings;

/**
 * Created by Yao on 2015/12/14.
 */
public class MainApplication extends Application{
    private static MainApplication sInstance;
    public PatchManager mPatchManager;
    public static MainApplication getInstance() {
        return sInstance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        sInstance = this;
        mPatchManager = new PatchManager(this);
        mPatchManager.init(String.valueOf(Settings.getPatchVersion()));
        mPatchManager.loadPatch();
    }
}
